#!/usr/bin/python

import wx

dlg = wx.TextEntryDialog(None, 'Enter some text','Text Entry')
dlg.SetValue("Default")
dlg.ShowModal()
print dlg.GetValue()
dlg.Destroy()

dlg1 = wx.FileDialog(None, "Open a file")
dlg1.SetStyle(wx.OPEN)
wildcard = "Python files (.py)|*.py|PythonW files (.pyw)|*.pyw|All files (*.*)|*.*"
dlg1.SetWildcard(wildcard)
dlg1.ShowModal()

